package second;

import java.math.BigDecimal;
import java.util.Scanner;

public class Main7 {

	public static void main(String[] args)
    {
		Scanner sc=new Scanner(System.in);
		while(true)
	{
   	 
	 String s=sc.nextLine();
	 String t=sc.nextLine();
	 BigDecimal b1 = new BigDecimal(s);
	 BigDecimal b2 = new BigDecimal(t);
   	 System.out.println(b1.add(b2));
   	 System.out.println(b1.multiply(b2));
}
    }
}